﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/*****************************************************************************************************************          
 Copyright © 2010 - Banco Itaú BBA S.A          
          
 TranslateTipoParametro : 
            
 Histórico de Alterações:      
 09/06/2010 - Leandra M Madureira	- Criacao OS375720

 *****************************************************************************************************************/

namespace ibba.src.norisk.ServiceImplementation
{
    public class TranslateTipoParametro
    {
        public static List<Contracts.TipoParametro> Translate(List<BusinessEntities.TipoParametro> pTipoParametro)
        {

            return ((
                        from p in pTipoParametro
                        select new Contracts.TipoParametro()
                        {
                            CodParametro = p.CodParametro,
                            CodTipoCampo = p.CodTipoCampo,
                            DscParametro = p.DscParametro,
                            VlrDefault = p.VlrDefault
                        }
                     ).ToList()
                  );
        }
    }
}


    
